<?php 

if (isset($app_shop_hasUnit) && $app_shop_hasUnit=="no"){
?>
<script>
var td=$("#master_shop_unit").parent().parent();
col=td.parent("tr").children().index(td)+1;
$('td:nth-child('+col+'),th:nth-child('+col+')').hide();
</script>
<?php 

}

?>